package com.biaobiaoqi.scoreanalysis.service;

import com.biaobiaoqi.scoreanalysis.exception.DuplicateRelation;
import com.biaobiaoqi.scoreanalysis.exception.NoRelationFoundException;
import com.biaobiaoqi.scoreanalysis.hibernate.bean.TeacherClazzCourseRelation;

public interface ITeacherClazzCourseRelationService {

	public void addRelation(int TeacherId, int clazzId, int CourseId)
			throws DuplicateRelation;

	public void deleteRelation(int TeacherId, int clazzId, int CourseId)
			throws NoRelationFoundException;

	public void deleteRelation(int relationId) throws NoRelationFoundException;

	public TeacherClazzCourseRelation findRelation(int TeacherId, int clazzId,
			int CourseId);

	public TeacherClazzCourseRelation findRelation(int relationId);

	public TeacherClazzCourseRelation searchRelation();

	public boolean isRelationExist(int TeacherId, int clazzId, int CourseId);
}
